clean up frontend code a bit
get redirect working
dont submit form unless valid on frontend