add sign in, sign out and remember me functionality