change en login and add CORSSupport