Preferences modal working, cross-browser compatability

Server side validation complete