Commented old code. Added auth in modal window.