login: fix uid comparison when None

Signed-off-by: Jiri Kuncar <jiri.kuncar@cern.ch>