Partially Implemented Profile Editing

I've copied some functions from the old code so that some UI is now
rendered for that, however the fields are not being created.