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