[styx-server] Added path validation, some small fixes