update login logic
update add plan functionality