added devise and done some config