Add password strength and max length functionality

Ready for review