added devise and followed steps to get it working.