Fixed bugs in user and time entry model