adds devise functionality