// Finally, register user if there are no errors in the form if (count($errors) == 0) { $pass = md5($rpass);//encrypt the password before saving in the database $query = &qu