Added devise and user authentication