fixed logic error in LoginFragment