Merge pull request #1 from zhumo/implement_devise

complete user authentication functions