changed undefined checks in create activity