Issue with login success, moved JS to external file to fix Chrome inline JS issues