added devise and authentication process