Added email checking as well as protection against sql injections