Changed syntax for fetching the users table for validation to fix compatibility issues with older PHP versions.