added devise and completed four preliminary steps