added profile page and various functionalities on the post and comment pages