Standard model and chiral gauge theories on the lattice