Finally figured out why csrf was failing all of the time. Fixed it, gonna actually start hooking up database components tomorrow