Modified login Ajax code to dynamically add the modal code.