Login: Disable submit on invalid form. Fixes #996