Convert active flag to integer for active check when logging in.

Some pretty bad PHP derp here.