tried to update _layout to render the script section of login pages, but still did not fix. I think its needed in the layout though.