Added register and login working