redirection added in user controller and relevant function added in base controller