fixed the devise problem