week1-dec28-kumar: fixed minor bugs for the login system