login and create updated with new js