Added redirectIfNotInternalAJAX method
Updated user controller to call this method