Added check for active flag on prescriber login