Fixed errors for logging in to be more consistent