production ready login script live locally