Fix logins problem #76

Fixes the problem in #76