Added the sign_in and some session stuff.