Register, login and cookies now functional for authentication