begin devise implementation