improved the loggin in the submit valid test