for cs169 warm up project -- login system