For Larsson :)
Docstrings added
Merge pull request #92 from kaysoky/loginFactory

Login factory