Established the buisness logic of user registration and login-- register first and then login with that provider