added functionality to require sign in to add gem