Resolving issue for admin not authenticating correctly