refactoring login
request parameter is not needed here
reformat and removed trailing whitespace
fixed some coding standard
Merge pull request #6 from hugofonseca/develop

Merged. Thanks @hugofonseca