improved user/update model to use update_attributes instead of manual update