adding user check to profile page