overdue change to User class to make getUserByUsername static