Add feature to route user to profile page after login and edit goal function