User auth

Finally finished basic user auth.