added user functionality and profile page