fixed syntax errors in index and signupcontroller + syntax error in createUser server method that caused a crash -- creating a user still crashed from server bug (checking rows when no rows are returned)