Added alert instead of toast
hard coding of usercode and device is removed