set up devise and redirect for authentication