Changes to validate user login