QUASAR: Fix bug with profile name validation

Ticket #775