PHP MySql api for login app