Fixed bug with Where call in user login.