added basic login functions and authentication service