Refactoring (variable names, spacing, braces, var declarations)
Added password style checking via config as per SQL membership provider