Added devise funcnality