Dealth with CORS error, PHP htaccess file added. POST added. Connection with database completed.

TODO: check for existing username