start of devise integration