logout works, register still not working