Added hook to validate user-name