okay, this code is combined with the code @modemlooper provided, and i found something else that solved the problem of adding the link into the main navigation. hope this works for everybody, worked for me.
functions.php
Code:
// adding dynamic profile link whether user is logged in or not
if ( is_user_logged_in() )
{
// Filter wp_nav_menu() to add additional links and other output
function new_nav_menu_items($items)
{
$homelink = ‘<li class="home"><a href="’ . bp_loggedin_user_domain() . ‘">’ . __(‘Profile’) . ‘</a></li>’;
$items = $homelink . $items;
return $items;
}
add_filter( ‘wp_nav_menu_items’, ‘new_nav_menu_items’ );
}