Added register and login