Login system using PHP and mySQL designed as an API