Try to fix register.php - need to improve