Change before_save into validate