Fixed main form, added functionality to user profile