Do not continue with registering user or logging in if there are any errors at all. Closes #1588