initial login logic copied in
Merge pull request #1 from golden-bears-2014/login

initial login logic copied in