Fixed minor errors and added email inpyt type validation