Added missing return statement in loginLink