added devise code
after removing json