made sessions work with login. Login is now 95-100% completed. Just have to clean up some stuff and make register autologin!