Cleaned up validation on registration and login forms