Fixed issues with login from Social link and Local