Fixed login page error problem. Fixes #75

 Look at #75 for details