typo correction and assigning 'type' to password input fields.