added devise to API