Added patern validation for username on register. Added alert.