use prepared statements for register, login, and submit question