How to authenticate user in rails using devise (#part1)