Validating and storing username