added devise and alerts