Add user register and login functionality