bug #69 fix issues with login