User auth pd

it works ;) i hope that my pep8 have improved :)