Ideally, the `student.views.create_account` view should be refactored so that the logic of creating an account is distinct from the logic of parsing JSON and rendering the view, and then this could only call the logic of creating an account. However, looking at the definition of the `student.views.create_account` view, that looks like a pretty big task, and probably outside the scope of this pull request. :(