Added the ability for users to sign in and out.