Fixed login bug

Previously, always would allow login