Adding readyState validations