Added a view function for profile edits.
Either the user enters data in the form and it is saved in Flask's g object, or the form gets its data from the g object.
Template rendering then occurs.