diff --git a/Command/GenerateProjectCommand.php b/Command/GenerateProjectCommand.php
index <HASH>..<HASH> 100644
--- a/Command/GenerateProjectCommand.php
+++ b/Command/GenerateProjectCommand.php
@@ -319,9 +319,11 @@ class GenerateProjectCommand extends GeneratorCommand
 
         $input->setOption( 'database-port', $databasePort );
 
-        $databaseUser = $dialog->ask(
+        $databaseUser = $dialog->askAndValidate(
             $output,
             $dialog->getQuestion( 'Database user', $input->getOption( 'database-user' ) ),
+            array( 'Netgen\Bundle\GeneratorBundle\Command\Validators', 'validateNotEmpty' ),
+            false,
             $input->getOption( 'database-user' )
         );
Validate that database user is not empty