fixed error: current_user is nil