Added password and email check logic to Registration and EditProfile
pages + servlet.