add requirejs and complete login without submit buttom