Updated the URL overrider controller to avoid unecessary redirecting
* Also prevented access to login and forgotPassword pages when user is logged in