add two function to read user name and change user'code