Fixed a bug in the update action and current_user