Node.js application implementing login and registration using MySQL