Fixed login bug

Fixed bug that locked you out of admin panel with a failed login until
cookie expired.