Added login functionality.
Merge pull request #30 from nathanshih/login

Added login functionality.