backend - php completion, validation and styles