Added login validations