formatted styles and scripts

tidied code, added very unsecure validation system for pre db validation