Fixed a couple small bugs. Added some more security on the server.