Fix regex to correctly validate profile name format
Style the flash messages