Authentication with phone and client and database