Login by terminal input