Adding in error message for badlogin, however a more robust solution is probably needed, other small updates for logging in