Refactoring of error handling to RegisterView