Fixed sql error of forgetting to reset a prepared query for inserting data into 'login' table