implement devise and new changes