ValidationCode related corrections

validateUser method working + login method now checks if user is
validated