Added proper decoding of emails and passwords to fix authentication issues