added devise and made it work for users