update login and user script and test