made database changes as suggested during call, added devise for secure login