added simple registration validation with ajax