Implemented functionality for users to view their profile.