added inputs validation to login