Implemented sign-in (and sessions).