working through devise
working code on devise