Added error messages into registration.php