adds sinon test for register and login valid user
merge. sinonSec conflict handled