few syntax tweaks to user model