you can use javascript to validate your textbox registration like
$('#btnReg').click(function(){
if($('#textField').val().length==0){
// show you massage in div here
// like this
$('#MsgError').html("error msg");
// or use alert
alert("error msg");
}
})