complete user authentication functions
Merge pull request #1 from zhumo/implement_devise

complete user authentication functions