Moved LoginAsync method to private region