Seperated server side validation code into seperate modules for reuse.
[Fixed #23] Tightened up validation on server side when saving to database.