Prevent inactive users from logging in through registration page.

@rlucioni @wedaly 

Unfortunately there's no existing test coverage for this area of the code, but it's a small enough change that I think it shouldn't be hugely problematic.

ECOM-813