update class User: add method getByUserName