updates to allow users to edit their profiles. Also did some basic urban renewal on the code