Adding email and password validation