added user validations and login