Finished modify level formula

Added validation to the form
Added function for modifying the level formula in the database
Button now saves to the database when clicked
Minor tweaks to form loading