update myscript

check whether it is login or sign-up
pass the result to the background