Add LoginPass authorization.

Add LoginPass authorization. Fix null dereference
in auth module and update tests.

Signed-off-by: Krzysztof Opasiak <ups100@tlen.pl>