Add sign out feature and update hooks