fixes for login