fix for logging in