adding code with login