addding function for validating alphanumeric allowing dot and space