authentication and logging in now functional