Fixed login error when email have space character