added getUserName static method in User class