registration and password reset fixes