devise setup part 1
added parameters check