Now with fully working sign-in mechanism.