More login stuff.

Signed-off-by: Boris Barbulovski <bbarbulovski@gmail.com>