User can only register with matching passwords and valid email