Refactoring for static resources, added password min length