Finished the password/knock checking mecahnism for the server