sign in and out function and navbar