INSERT - Number of bind variables doesn't match number of fields in prepared statement

You are attempting to bind_result on a statement that is not returning any results.

Remove this line. $stmt -> bind_result($user, $pw);