Fix error in login