submit activity: inline errors instead of alert and jquery  instead of xmlhttp