modification to devise user model functional