Added error checking to pass reset request