change http to https in login method