Adding php script for validation