finishing sign in out functions