alex for login bug fix