Complete sign in/out and remember_me function