wip.

just need some version control.
Use object literal instead of switch case for error message.

still need to address getting to that function in a prettier
way...
Add email and password validation.

more elegant error handling (i think) than first pass.
Merge pull request #1 from vipyne/wip

Wip