modify maxsize of certificate and avatar