login: fix PEP8/257 errors

Signed-off-by: Jan Aage Lavik <jan.age.lavik@cern.ch>