Implemented sessions so users can only edit their profiles