login view and validations