added code to recirect to your profile page or root if you go to /user/.