Fix pw and pw confirmation not matching error and logout error