implement addUser and validateLogin