Added a condition to the login view for adding a class if the form fields are left blank