added some validation to check for username