merge newuser() and olduser() to login()

also fix a bug: entering nothing when choose causes IndexError exception