Added some validation since I suk at everything else