Add User class, login function

The login function is done, you may try
add remark