Add passwrod strength and max length functionality

Ready for review