update provider to split logIn and logOut functions