added devise for authentication and made database changes