got login working and the next page mostly working
 a bunch of stability changes