Login now uses onSubmit instead of onClick.

Shoutout to @albertvision for suggesting the idea.