updated the forms, validated the email and state management