user registration endpoint now accepts post parameters of username and password for database insertion