Add validation to login