add some stuff for email validation (not working yet), and fixes the subnav button issue