fixed login errors, session, other things are broke though, le sigh