Added API method for checking login availability