added function that check if the email and password match each other, still much work to do