Bike looks awesome! Congrats!
On your battery fitment, it's great that it's so snug, but I highly recommend doing a proper mount, both for your safety, the safety of others and for the battery's protection. If you were only riding street then it wouldn't matter, but if you're doing MX, the stresses g-forces that a bike endures while on the track need to be accounted for.
The way it's resting directly on the motor is not ideal, and one hard hit could put undue stress on that part of the motor casing, and even worse, on that very nice metal case of the battery. Don't forget, there are cells right underneath that... you did design it after all.
Also, in the case of a bad crash, if the battery is not properly secured, you very well could have a 50 pound projectile flying towards who knows where. Not ideal.