Added null check on onerrormessage causing null reference error
created a script that activated store loader on registered user