made changes to devise