function validForm() {
// code....
return $result;
}
<div class="control-group">
<?= validFrom(); ?>
<label class="control-label" for="login">Login:</label>
<div class="controls">
<input size="50" name="login" id="login" value="" type="text" class="form-control" placeholder="Login">
</div>
</div>