Unable to login to openemr after adding an SSL

I tried to install openemr on ubuntu based lightsail aws instance. The default login and password was working fine as it was the new installation. Then i tried installing an SSL by creating a load balancer on my lightsail instance. Now, open emr portal gives me an error “Invalid username and password”.
This openemr is from AWS marketplace which is hosted on my lightsail instance.

Can anyone help me here please?

Operating System
Ubuntu 16