add cookie process logic for remeber login name