fix of current_user.nil? error.