added devise and users functionality