Fixed link bug when user is logged in