Update forms.py

Modified validate method of LoginForm.