Registration form modified to insert the filled data to MYSQL database with validation