Fixed User class to prevent crashing