added sign in and sign out on view