altering devise check