added modal to login but there are errors - loads twice