added isLoading for login