Fixed login issue

Fixed bug where any password would work if username was either admin or
res