on login modal close, clear form and validation errors, fixes #243